<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="客户间调拨" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="addApply()"
                            ng-disabled="!btnPermission.clientAllocationAdd"
                            title="{{!btnPermission.clientAllocationAdd?'无权限执行此操作':''}}">新增
                    </button>
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                                ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.clientAllocationExport">
                            <div title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl"
                                    download-param="exportParam.sectionParam"
                                    download-key="ids">
                                    <i class="yb-icon ico-export-o"></i> 导出
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition" download-duration="3">
                                    <i class="yb-icon ico-export-o"></i> 导出全部
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')">高级搜索
                    </button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="调拨单号"
                               ng-model="condition.allotOrder">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)"
                 reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">调拨单号：</label>
                        <input type="text" name="purchaseOrgName" ng-model="condition.allotOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">制单部门：</label>
                        <input type="text" name="purchaseOrgName" ng-model="condition.deptName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">制单人：</label>
                        <input type="text" name="purchaseOrgName" ng-model="condition.createName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">状态：</label>
                        <select ng-model="condition.verifyState" class="form-control"
                                ng-options="item.code as item.name for item in billStatus">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">调出状态：</label>
                        <select ng-model="condition.outState" class="form-control"
                                ng-options="item.code as item.name for item in stateList">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">调入状态：</label>
                        <select ng-model="condition.inState" class="form-control"
                                ng-options="item.code as item.name for item in stateList">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">是否已结算：</label>
                        <select ng-model="condition.isSettle" class="form-control">
                            <option value="">请选择</option>
                            <option value="0">否</option>
                            <option value="1">是</option>
                        </select>
                    </div>

                    <div class="form-group clearfix m-b-none">
                        <label class="control-label">制单时间：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)"
                               is-open="datePickerFlag[0]" close-text="关闭"
                               ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                               readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)"
                               is-open="datePickerFlag[1]" close-text="关闭"
                               ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                               readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span>发货开始月份</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.startDeliveryDate"
                               datepicker-popup="{{'yyyy-MM-dd'}}"
                               ng-click="endDeliveryDateShow=false;startDeliveryDateShow=!startDeliveryDateShow"
                               is-open="startDeliveryDateShow" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span>发货结束月份</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.endDeliveryDate"
                               datepicker-popup="{{'yyyy-MM-dd'}}"
                               ng-click="startDeliveryDateShow=false;endDeliveryDateShow=!endDeliveryDateShow"
                               is-open="endDeliveryDateShow" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span>入库开始月份</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.startInDate"
                               datepicker-popup="{{'yyyy-MM-dd'}}"
                               ng-click="endInDateShow=false;startInDateShow=!startInDateShow"
                               is-open="startInDateShow" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span>入库结束月份</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.endInDate"
                               datepicker-popup="{{'yyyy-MM-dd'}}"
                               ng-click="startInDateShow=false;endInDateShow=!endInDateShow"
                               is-open="endInDateShow" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span>出库开始月份</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.startOutDate"
                               datepicker-popup="{{'yyyy-MM-dd'}}"
                               ng-click="endOutDateShow=false;startOutDateShow=!startOutDateShow"
                               is-open="startOutDateShow" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span>出库结束月份</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.endOutDate"
                               datepicker-popup="{{'yyyy-MM-dd'}}"
                               ng-click="startOutDateShow=false;endOutDateShow=!endOutDateShow"
                               is-open="endOutDateShow" close-text="关闭" modal-size="small" readonly>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                 has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                            <tr>
                                <th width="40" class="text-center th-check border-l-none">
                                    <div yb-check-box yb-checked="markInfo.allCheckedBill"
                                         yb-click="selectAll(dataList, 'Bill')"></div>
                                </th>
                                <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                    width="{{itemCol.width}}"
                                    ng-click="toSort(tableConfig.tableCol, $index)"
                                    ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                    <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.fixedWidth"
                                         fixed-width="tbStyle.billFixedWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.billFixedWidth">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                    width="{{itemCol.width}}"
                                    ng-click="toSort(tableConfig.tableCol, $index)"
                                    ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                    <div yb-thead-operate ng-model="itemCol"
                                         target-width="tableConfig.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dataList track by $index"
                                ng-class="{'row-selected': $index === markInfo.cueRow}" ng-click="selectRow($index)">
                                <td width="40" class="text-center border-l-none">
                                    <div yb-check-box yb-checked="item.isChecked"
                                         yb-click="selectSingle(item, dataList, 'Bill')"></div>
                                </td>
                                <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                    width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                    title="{{item[itemCol.dataField]}}">
                                    <div class="font-0" ng-if="itemCol.type === 'operate'">
                                        <button type="button" class="btn btn-operate m-r-xs" ng-click="auditApply(item)"
                                                ng-disabled="((item.roleType === 0) || (item.roleType === 1 && item.verifyState != 1) || (item.roleType === 2 && item.verifyState != 2)) || !btnPermission.clientAllocationAudit"
                                                title="{{!btnPermission.clientAllocationAudit?'无权限执行此操作':''}}">审核
                                        </button>
                                        <button type="button" class="btn btn-operate m-r-xs" ng-click="editApply(item)"
                                                ng-disabled="(item.isSettle===1 || item.verifyState === 2 || item.verifyState === 4 || item.verifyState === 5) || !btnPermission.clientAllocationEdit"
                                                title="{{!btnPermission.clientAllocationEdit?'无权限执行此操作':''}}">编辑
                                        </button>
                                        <button type="button" class="btn btn-operate m-r-xs" ng-click="delApply(item)"
                                                ng-disabled="(item.isSettle===1 || item.verifyState === 2 || item.verifyState === 4 || item.verifyState === 5) || !btnPermission.clientAllocationDel"
                                                title="{{!btnPermission.clientAllocationDel?'无权限执行此操作':''}}">删除
                                        </button>
                                        <button type="button" class="btn btn-operate m-r-xs" ng-click="printBill(item)"
                                                ng-disabled="!btnPermission.clientAllocationPrint"
                                                title="{{!btnPermission.clientAllocationPrint?'无权限执行此操作':''}}">打印
                                        </button>
                                        <button type="button" class="btn btn-operate m-r-xs"
                                                ng-disabled="item.isSettle===1 || !btnPermission.clientAllocationSettle" title="{{!btnPermission.clientAllocationSettle?'无权限执行此操作':''}}" ng-click="settlement(item)">结算
                                        </button>
                                        <button class="btn btn-operate m-r-xs" ng-click="goOutbound(item)"
                                                ng-disabled="(item.verifyState === 1 || item.verifyState === 3 || item.inState == 2 || item.outState == 2  || item.roleType != 1 || item.verifyState == 0 || !btnPermission.clientAllocationOut)"
                                                title="{{!btnPermission.clientAllocationOut?'无权限执行此操作':''}}">出库</button>
                                        <button class="btn btn-operate" ng-click="goInbound(item)"
                                                ng-disabled="item.verifyState != 4 || item.outState != 2 || item.inState == 2  || item.roleType != 2 || !btnPermission.clientAllocationIn"
                                                title="{{!btnPermission.clientAllocationIn?'无权限执行此操作':''}}">入库</button>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.billFixedWidth">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dataList track by $index"
                                ng-class="{'row-selected': $index === markInfo.cueRow}"
                                ng-click="selectRow($index)">
                                <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                    width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                    <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                    <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                       ng-if="!!itemCol.clickFn">
                                        {{item[itemCol.dataField]}}
                                    </a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allCheckedBill" yb-check-name="全选"
                     yb-click="selectAll(dataList, 'Bill')"></div>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="审核" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调拨单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.allotOrder || '-'}}">
                        {{orderObj.headerInfo.allotOrder || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单部门：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.deptName || '-'}}">
                        {{orderObj.headerInfo.deptName||'-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.createName || '-'}}">
                        {{orderObj.headerInfo.createName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">申请日期：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{(orderObj.headerInfo.createDate|YbDate) || '-'}}">
                        {{(orderObj.headerInfo.createDate|YbDate:"yyyy-MM-dd HH:mm:ss") || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出客户：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outAgentName || '-'}}">
                        {{orderObj.headerInfo.outAgentName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出联系人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{orderObj.headerInfo.outAgentContact || '-'}}">
                        {{orderObj.headerInfo.outAgentContact || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出联系方式：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outAgentPhone || '-'}}">
                        {{orderObj.headerInfo.outAgentPhone || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入客户：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inAgentName || '-'}}">
                        {{orderObj.headerInfo.inAgentName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入联系人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inAgentContact || '-'}}">
                        {{orderObj.headerInfo.inAgentContact || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入联系方式：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inAgentPhone || '-'}}">
                        {{orderObj.headerInfo.inAgentPhone || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入地址：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inAddress || '-'}}">
                        {{orderObj.headerInfo.inAddress || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">物流公司：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.logisCom || '-'}}">
                        {{orderObj.headerInfo.logisCom || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">物流单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.logisOrder || '-'}}">
                        {{orderObj.headerInfo.logisOrder || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">承运人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.carrier || '-'}}">
                        {{orderObj.headerInfo.carrier || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">联系方式：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.carrierPhone || '-'}}">
                        {{orderObj.headerInfo.carrierPhone || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">发货日期：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{(orderObj.headerInfo.deliveryDate|YbDate) || '-'}}">
                        {{(orderObj.headerInfo.deliveryDate|YbDate:"yyyy-MM-dd HH:mm:ss") || '-'}}
                    </div>
                </div>
            </div>
            <div class="row wrapper-y-xs" ng-if="isZHJCH">
                <div class="col-xs-12 operate-bar font-0">
                    <div class="pull-right m-r-xs" title="{{!btnPermission.showCostPrice?'无权限执行此操作':''}}">
                        <label class="font-12 m-r-xs">显示成本价:</label>
                        <toggle ng-model="$parent.costPriceShow" yb-disabled="!btnPermission.showCostPrice"></toggle>
                    </div>
                </div>
            </div>
            <div class="panel-bar pos-a clearfix" style="left:0;right: 240px;">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="panel-bar pos-a clearfix" style="right: 0; width: 225px;">
                <div class="pull-left">
                    <i></i>审核意见
                </div>
            </div>
            <div class="main-area d-b-60" style="top:200px; right: 240px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                    width="{{itemCol.width}}" ng-if="itemCol.type!=='cost'||costPriceShow">
                                    <div yb-thead-operate ng-model="itemCol"
                                         target-width="editMaterielConfig.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in orderObj.detailList track by $index">
                                <td class="spill-dots" ng-if="itemCol.type!=='cost'||costPriceShow"
                                    ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                    width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                    {{item[itemCol.dataField]}}
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:200px; left: auto; width: 225px;">
                <div class="main-wrap p-b-lg over-flow-h">
                <textarea yb-word-count max-size="100" name="note" class="form-control full"
                          ng-model="orderObj.headerInfo.note"
                          ng-class="{'error': !orderObj.headerInfo.note && submitted}" placeholder="审核意见"></textarea>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm"
                        ng-click="auditPurchase('pass', orderObj.headerInfo, orderObj.headerInfo.note)">通过
                </button>
                <button type="button" class="btn btn-primary m-r-sm"
                        ng-click="auditPurchase('refuse', orderObj.headerInfo, orderObj.headerInfo.note)">拒绝
                </button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="{{tabFlag.name}}" active="activeFlag[2]" ng-if="activeFlag[2]">
            <form name="orderForm" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单部门：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.deptName||'-'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单人：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.createName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">申请日期：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.createDate|YbDate:"yyyy-MM-dd HH:mm:ss"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="tabFlag.type == 2">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>调出客户：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.outAgentName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="tabFlag.type == 1">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>调出客户：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.outAgentName"
                             select-obj="selectAgent('out',orderObj.headerInfo.inAgentId)"
                             clear-form="clearAgent('out')" tips-name="调出客户" form-require="true"></div>

                        <div class="msg-block" ng-if="!orderObj.headerInfo.outAgentName && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择调出客户
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">调出联系人：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="inAgentContact" class="form-control"
                               ng-model="orderObj.headerInfo.outAgentContact"
                               maxlength="10">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">调出联系方式：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="inAgentPhone" class="form-control"
                               ng-model="orderObj.headerInfo.outAgentPhone"
                               maxlength="11">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="tabFlag.type == 1">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>调入客户：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.inAgentName"
                             select-obj="selectAgent('in',orderObj.headerInfo.outAgentId)"
                             clear-form="clearAgent('in')" tips-name="调入客户" form-require="true"></div>

                        <div class="msg-block" ng-if="!orderObj.headerInfo.inAgentName && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择调入客户
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>调入联系人：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="inAgentContact" class="form-control"
                               ng-model="orderObj.headerInfo.inAgentContact"
                               required yb-focus maxlength="10">
                        <div class="msg-block"
                             ng-show="orderForm.inAgentContact.$dirty || (orderForm.inAgentContact.$invalid && submitted)">
                            <div class="error-msg"
                                 ng-if="orderForm.inAgentContact.$error.required && !orderForm.inAgentContact.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>调入联系方式：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="inAgentPhone" class="form-control"
                               ng-model="orderObj.headerInfo.inAgentPhone"
                               required yb-focus maxlength="11">
                        <div class="msg-block"
                             ng-show="orderForm.inAgentPhone.$dirty || (orderForm.inAgentPhone.$invalid && submitted)">
                            <div class="error-msg"
                                 ng-if="orderForm.inAgentPhone.$error.required && !orderForm.inAgentPhone.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>调入地址：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="inAddress" class="form-control"
                               ng-model="orderObj.headerInfo.inAddress"
                               required yb-focus maxlength="80">
                        <div class="msg-block"
                             ng-show="orderForm.inAddress.$dirty || (orderForm.inAddress.$invalid && submitted)">
                            <div class="error-msg"
                                 ng-if="orderForm.inAddress.$error.required && !orderForm.inAddress.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">物流公司：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="logisCom" class="form-control" ng-model="orderObj.headerInfo.logisCom"
                               maxlength="10">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">物流单号：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="logisOrder" class="form-control"
                               ng-model="orderObj.headerInfo.logisOrder"
                               maxlength="20">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">承运人：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="carrier" class="form-control" ng-model="orderObj.headerInfo.carrier"
                               maxlength="10">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">联系方式：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="carrierPhone" class="form-control"
                               ng-model="orderObj.headerInfo.carrierPhone"
                               maxlength="11">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">发货日期：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="deliveryDate" class="form-control date-picker"
                               ng-model="orderObj.headerInfo.deliveryDate"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showDatepicker = !showDatepicker"
                               is-open="showDatepicker" close-text="关闭" readonly>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!!costPriceShow">
                    <label class="col-xs-4 control-label max-w-100">成本总价：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.costTotal}}
                    </label>
                </div>
            </form>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event)">选择零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="importMateriel()">导入零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()">批量删除</button>
                    <div class="pull-right m-r-xs" title="{{!btnPermission.showCostPrice?'无权限执行此操作':''}}" ng-if="isZHJCH">
                        <label class="font-12 m-r-xs">显示成本价:</label>
                        <toggle ng-model="$parent.costPriceShow" yb-disabled="!btnPermission.showCostPrice"></toggle>
                    </div>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMateriel" selected-list="orderObj.detailList"
                supplier-id="orderObj.headerInfo.outAgentId"></div>
            <div class="main-area d-b-60" style="top:260px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <thead>
                            <tr>
                                <th width="40" class="th-check text-center">
                                    <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                         yb-click="selectAll(orderObj.detailList, 'Material')"></div>
                                </th>
                                <th width="60" class="text-center">
                                    操作
                                </th>
                                <th ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                    width="{{itemCol.width}}"
                                    ng-if="itemCol.type!=='cost'||costPriceShow">
                                    <div yb-thead-operate ng-model="itemCol"
                                         target-width="materielTableConfig.targetWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in orderObj.detailList track by $index">
                                <td width="40" class="text-center">
                                    <div yb-check-box yb-checked="item.isChecked"
                                         yb-click="selectSingle(item, orderObj.detailList, 'Material')"></div>
                                </td>
                                <td width="60">
                                    <button type="button" class="btn btn-operate"
                                            ng-click="delMateriel(item, $index, $event)">删除
                                    </button>
                                </td>
                                <td ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                    width="{{itemCol.width}}"
                                    ng-if="itemCol.type!=='cost'||costPriceShow">
                                    <div class="spill-dots" ng-if="!itemCol.needInput">
                                        {{item[itemCol.dataField]}}
                                    </div>
                                    <div ng-if="itemCol.needInput" class="td-edit pos-r">
                                        <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                               ng-change="checkQty(item)" yb-number-input max="99999999.999"
                                               disable-decimal="false" decimal-places="3"
                                               ng-class="{'error': item.qtyErr}">
                                        <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                            <i class="triangle"></i>
                                            <div class="msg">申请数量不能为空和0</div>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData('save', orderForm.$valid)">保存
                </button>
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData('submit', orderForm.$valid)">
                    提交
                </button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="详情" active="activeFlag[3]" ng-if="activeFlag[3]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调拨单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.allotOrder || '-'}}">
                        {{orderObj.headerInfo.allotOrder || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单部门：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.deptName || '-'}}">
                        {{orderObj.headerInfo.deptName||'-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.createName || '-'}}">
                        {{orderObj.headerInfo.createName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">申请日期：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{(orderObj.headerInfo.createDate|YbDate) || '-'}}">
                        {{(orderObj.headerInfo.createDate|YbDate:"yyyy-MM-dd HH:mm:ss") || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出客户：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outAgentName || '-'}}">
                        {{orderObj.headerInfo.outAgentName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出联系人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{orderObj.headerInfo.outAgentContact || '-'}}">
                        {{orderObj.headerInfo.outAgentContact || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出联系方式：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outAgentPhone || '-'}}">
                        {{orderObj.headerInfo.outAgentPhone || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入客户：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inAgentName || '-'}}">
                        {{orderObj.headerInfo.inAgentName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入联系人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inAgentContact || '-'}}">
                        {{orderObj.headerInfo.inAgentContact || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入联系方式：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inAgentPhone || '-'}}">
                        {{orderObj.headerInfo.inAgentPhone || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入地址：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inAddress || '-'}}">
                        {{orderObj.headerInfo.inAddress || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">物流公司：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.logisCom || '-'}}">
                        {{orderObj.headerInfo.logisCom || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">物流单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.logisOrder || '-'}}">
                        {{orderObj.headerInfo.logisOrder || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">承运人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.carrier || '-'}}">
                        {{orderObj.headerInfo.carrier || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">联系方式：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.carrierPhone || '-'}}">
                        {{orderObj.headerInfo.carrierPhone || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">发货日期：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{(orderObj.headerInfo.deliveryDate|YbDate) || '-'}}">
                        {{(orderObj.headerInfo.deliveryDate|YbDate:"yyyy-MM-dd HH:mm:ss") || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审核人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.auditUserName || '-'}}">
                        {{orderObj.headerInfo.auditUserName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审核状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{(orderObj.headerInfo.verifyState | ProgressStatus: 'verifyState') || '-'}}">
                        {{(orderObj.headerInfo.verifyState | ProgressStatus: "verifyState") || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审核日期：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{(orderObj.headerInfo.auditDate|YbDate) || '-'}}">
                        {{(orderObj.headerInfo.auditDate|YbDate:"yyyy-MM-dd HH:mm:ss") || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审核意见：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.note || '-'}}">
                        {{orderObj.headerInfo.note || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">结算意见：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.remark || '-'}}">
                        {{orderObj.headerInfo.remark || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!!costPriceShow">
                    <label class="col-xs-4 m-b-n text-right max-w-100">成本总价：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.costTotal || '-'}}">
                        {{orderObj.headerInfo.costTotal || '-'}}
                    </div>
                </div>
            </div>
            <div class="row wrapper-y-xs" ng-if="isZHJCH">
                <div class="col-xs-12 operate-bar font-0">
                    <div class="pull-right m-r-xs" title="{{!btnPermission.showCostPrice?'无权限执行此操作':''}}">
                        <label class="font-12 m-r-xs">显示成本价:</label>
                        <toggle ng-model="$parent.costPriceShow" yb-disabled="!btnPermission.showCostPrice"></toggle>
                    </div>
                </div>
            </div>
            <div class="main-area d-b-60" ng-style="{'top': costPriceShow ? '253px' : '260px'}">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                    width="{{itemCol.width}}" ng-if="itemCol.type!=='cost'||costPriceShow">
                                    <div yb-thead-operate ng-model="itemCol"
                                         target-width="editMaterielConfig.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in orderObj.detailList track by $index">
                                <td class="spill-dots" ng-if="itemCol.type!=='cost'||costPriceShow"
                                    ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                    width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                    {{item[itemCol.dataField]}}
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-default" ng-click="cancel()">返回</button>
            </div>
        </div>
        <div tab heading="入库" active="activeFlag[4]" ng-if="activeFlag[4]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调拨单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.allotOrder || '-'}}">
                        {{orderObj.headerInfo.allotOrder || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单部门：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.deptName || '-'}}">
                        {{orderObj.headerInfo.deptName||'-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.createName || '-'}}">
                        {{orderObj.headerInfo.createName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">申请日期：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{(orderObj.headerInfo.createDate|YbDate) || '-'}}">
                        {{(orderObj.headerInfo.createDate|YbDate:"yyyy-MM-dd HH:mm:ss") || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出客户：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outAgentName || '-'}}">
                        {{orderObj.headerInfo.outAgentName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出联系人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{orderObj.headerInfo.outAgentContact || '-'}}">
                        {{orderObj.headerInfo.outAgentContact || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出联系方式：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outAgentPhone || '-'}}">
                        {{orderObj.headerInfo.outAgentPhone || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入客户：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inAgentName || '-'}}">
                        {{orderObj.headerInfo.inAgentName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入联系人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inAgentContact || '-'}}">
                        {{orderObj.headerInfo.inAgentContact || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入联系方式：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inAgentPhone || '-'}}">
                        {{orderObj.headerInfo.inAgentPhone || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入地址：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inAddress || '-'}}">
                        {{orderObj.headerInfo.inAddress || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">物流公司：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.logisCom || '-'}}">
                        {{orderObj.headerInfo.logisCom || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">物流单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.logisOrder || '-'}}">
                        {{orderObj.headerInfo.logisOrder || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">承运人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.carrier || '-'}}">
                        {{orderObj.headerInfo.carrier || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">联系方式：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.carrierPhone || '-'}}">
                        {{orderObj.headerInfo.carrierPhone || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">发货日期：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{(orderObj.headerInfo.deliveryDate|YbDate) || '-'}}">
                        {{(orderObj.headerInfo.deliveryDate|YbDate:"yyyy-MM-dd HH:mm:ss") || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审核人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.auditUserName || '-'}}">
                        {{orderObj.headerInfo.auditUserName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审核状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{(orderObj.headerInfo.verifyState | ProgressStatus: 'verifyState') || '-'}}">
                        {{(orderObj.headerInfo.verifyState | ProgressStatus: "verifyState") || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审核日期：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{(orderObj.headerInfo.auditDate|YbDate) || '-'}}">
                        {{(orderObj.headerInfo.auditDate|YbDate:"yyyy-MM-dd HH:mm:ss") || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审核意见：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.note || '-'}}">
                        {{orderObj.headerInfo.note || '-'}}
                    </div>
                </div>
                <!-- <div class="form-group col-xs-3 m-b-sm" ng-if="!!costPriceShow">
                     <label class="col-xs-4 m-b-n text-right max-w-100">成本总价：</label>
                     <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.costTotal || '-'}}">
                         {{orderObj.headerInfo.costTotal || '-'}}
                     </div>
                 </div>-->
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">选择仓库：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.warehouseCode" select-obj="selectWarehouse()"
                             clear-form="clearWarehouse()" tips-name="选择仓库" form-require="true"></div>
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="main-area d-b-60" style="top:280px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in inTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                    <div yb-thead-operate ng-model="itemCol" target-width="inTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in orderObj.detailList track by $index">
                                <td ng-repeat="itemCol in inTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-class="{'wrapper-none': itemCol.inputType === 'func'}">
                                    <div class="spill-dots"
                                         ng-if="!itemCol.input || item.status === 2 || item.status == 3"
                                         title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </div>
                                    <div ng-if="!!itemCol.input && itemCol.inputType === 'func'" class="td-edit pos-r">
                                        <div yb-form-clear class="td-edit" ng-model="item[itemCol.dataField]"
                                             select-obj="selDepot(item)"
                                             clear-form="clearDepot(item)" tips-name="储位"
                                             title="{{item[itemCol.dataField]}}"
                                             ng-class="{'error': !!item.locationErr}"></div>
                                        <div class="pos-a tool-tips" ng-if="!!item.locationErr && !item.locationCode">
                                            <i class="triangle"></i>
                                            <div class="msg">请选择储位</div>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="inboundSubmit()">确认入库</button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="出库" active="activeFlag[5]" ng-if="activeFlag[5]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调拨单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.allotOrder || '-'}}">
                        {{orderObj.headerInfo.allotOrder || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单部门：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.deptName || '-'}}">
                        {{orderObj.headerInfo.deptName||'-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.createName || '-'}}">
                        {{orderObj.headerInfo.createName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">申请日期：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{(orderObj.headerInfo.createDate|YbDate) || '-'}}">
                        {{(orderObj.headerInfo.createDate|YbDate:"yyyy-MM-dd HH:mm:ss") || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出客户：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outAgentName || '-'}}">
                        {{orderObj.headerInfo.outAgentName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出联系人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{orderObj.headerInfo.outAgentContact || '-'}}">
                        {{orderObj.headerInfo.outAgentContact || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出联系方式：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outAgentPhone || '-'}}">
                        {{orderObj.headerInfo.outAgentPhone || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入客户：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inAgentName || '-'}}">
                        {{orderObj.headerInfo.inAgentName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入联系人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inAgentContact || '-'}}">
                        {{orderObj.headerInfo.inAgentContact || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入联系方式：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inAgentPhone || '-'}}">
                        {{orderObj.headerInfo.inAgentPhone || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入地址：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inAddress || '-'}}">
                        {{orderObj.headerInfo.inAddress || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">物流公司：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.logisCom || '-'}}">
                        {{orderObj.headerInfo.logisCom || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">物流单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.logisOrder || '-'}}">
                        {{orderObj.headerInfo.logisOrder || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">承运人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.carrier || '-'}}">
                        {{orderObj.headerInfo.carrier || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">联系方式：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.carrierPhone || '-'}}">
                        {{orderObj.headerInfo.carrierPhone || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">发货日期：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{(orderObj.headerInfo.deliveryDate|YbDate) || '-'}}">
                        {{(orderObj.headerInfo.deliveryDate|YbDate:"yyyy-MM-dd HH:mm:ss") || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审核人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.auditUserName || '-'}}">
                        {{orderObj.headerInfo.auditUserName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审核状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{(orderObj.headerInfo.verifyState | ProgressStatus: 'verifyState') || '-'}}">
                        {{(orderObj.headerInfo.verifyState | ProgressStatus: "verifyState") || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审核日期：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{(orderObj.headerInfo.auditDate|YbDate) || '-'}}">
                        {{(orderObj.headerInfo.auditDate|YbDate:"yyyy-MM-dd HH:mm:ss") || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审核意见：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.note || '-'}}">
                        {{orderObj.headerInfo.note || '-'}}
                    </div>
                </div>
                <!-- <div class="form-group col-xs-3 m-b-sm" ng-if="!!costPriceShow">
                     <label class="col-xs-4 m-b-n text-right max-w-100">成本总价：</label>
                     <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.costTotal || '-'}}">
                         {{orderObj.headerInfo.costTotal || '-'}}
                     </div>
                 </div>-->
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">选择仓库：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.warehouseCode" select-obj="selectWarehouse()"
                             clear-form="clearWarehouse()" tips-name="选择仓库" form-require="true"></div>
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="main-area d-b-60" style="top:300px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in inTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                    <div yb-thead-operate ng-model="itemCol" target-width="inTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in orderObj.detailList track by $index">
                                <td ng-repeat="itemCol in inTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-class="{'wrapper-none': itemCol.inputType === 'func'}">
                                    <div class="spill-dots"
                                         ng-if="!itemCol.input || item.status === 2 || item.status == 3"
                                         title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </div>
                                    <div ng-if="!!itemCol.input && itemCol.inputType === 'func'" class="td-edit pos-r">
                                        <div yb-form-clear class="td-edit" ng-model="item[itemCol.dataField]"
                                             select-obj="selDepot(item)"
                                             clear-form="clearDepot(item)" tips-name="储位"
                                             title="{{item[itemCol.dataField]}}"
                                             ng-class="{'error': !!item.locationErr}"></div>
                                        <div class="pos-a tool-tips" ng-if="!!item.locationErr && !item.locationCode">
                                            <i class="triangle"></i>
                                            <div class="msg">请选择储位</div>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="outboundSubmit()">确认出库</button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>
    </div>
</div>